<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>XYChart.addDiscreteHeatMapLayer2</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="XYChart.htm">XYChart</a>.<wbr>addDiscreteHeatMapLayer2</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public DiscreteHeatMapLayer addDiscreteHeatMapLayer2(double[] xGrid, double[] yGrid, double[] zData)
</div>
<p class="heading2">Description</p>
<div class="content">
Adds a discrete heat map layer to the XYChart by specifying the cell values and positions.<br><br>
The cells are assumed to be arranged as a regular grid. The xGrid and yGrid arrays can be the center coordinates of the cells or the boundary coordinates of the cells.<br><br>
Suppose there are 9 cells (the zData array contains 9 values). If the xGrid and yGrid arrays each contains 3 values, the cells will be assumed to be arranged as a 3 x 3 grid, and the xGrid and yGrid will be assumed to be the center coordinates of the cells.<br><br>
If the xGrid array and yGrid array each contains 4 values instead, they will be assumed to be the boundaries of the cells. The first column of cells will occupy the space between xGrid[0] and xGrid[1], the second column between xGrid[1] and xGrid[2], and the third column between xGrid[2] and xGrid[3]. The same applies to the yGrid.<br><br>
In general, if xGrid and yGrid contains enough values to be used as the boundary coordinates, they will be assumed to be the boundary coordinates. Otherwise they will be assumed to be the center coordinates.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>xGrid</td><td>(Mandatory)</td><td>An array containing the x coordinates of the centers or boundaries of the cells.</td></tr><tr><td>yGrid</td><td>(Mandatory)</td><td>An array containing the y coordinates of the centers or boundaries of the cells.</td></tr><tr><td>zData</td><td>(Mandatory)</td><td>An array containing the data values of the cells.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
A <a href="DiscreteHeatMapLayer.htm">DiscreteHeatMapLayer</a> object representing the discrete heat map layer created.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
